<html>
<head>
<title>ระบบบริหารการจองโต๊ะอาหาร</title>
<meta http-equiv="content-Language" content="th">
<meta http-equiv="content-Type" content="text/html; charset=utf-8">

<link href="user/css/mainpage.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="inc/jquery.js"></script>

</head>

<body>

<div id="header">
<table>
	<tr>
		<td><img src="user/pic/index.png"></td>
		<td><br>
		<p>ระบบบริหารการจองโต๊ะอาหาร....สำหรับผู้ใช้ทั่วไป</p>
		</td>
	</tr>
</table>
</div>


<center>
<br>
<div>
	<table id="mainTable">
		<tr>
			<td><a href="user/status.html"><img src="user/pic/m1.png"><br><font color="#FF6600">จองโต๊ะอาหาร</font></a></td>
			<td><a href="user/user_search.php"><img src="user/pic/m2.png"><br><font color="#FF6600">ค้นหาข้อมูลการจอง</font></a></td>
			<td><a href="admin/admin_login.html"><img src="user/pic/m3.png"><br><font color="#FF6600">ผู้ดูแลระบบ</font></a></td>
			<td><a href="#?w=500" rel="popup_name" class="poplight">
				<img src="user/pic/m4.png"><br><font color="#FF6600">เกี่ยวกับผู้จัดทำ</font></a></td>
		</tr>
	</table>
</div>
</center>

<script>
$(document).ready(function() {
	$('a.poplight[href^=#]').click(function() {
    var popID = $(this).attr('rel'); //Get Popup Name
    var popURL = $(this).attr('href'); //Get Popup href to define size

    //Pull Query & Variables from href URL
    var query= popURL.split('?');
    var dim= query[1].split('&');
    var popWidth = dim[0].split('=')[1]; //Gets the first query string value

    //Fade in the Popup and add close button
    $('#' + popID).fadeIn().css({ 'width': Number( popWidth ) }).prepend('<a href="#" class="close"><img src="user/pic/close_pop.png" class="btn_close" title="Close Window" alt="Close" /></a>');

    //Define margin for center alignment (vertical   horizontal) - we add 80px to the height/width to accomodate for the padding  and border width defined in the css
    var popMargTop = ($('#' + popID).height() + 80) / 2;
    var popMargLeft = ($('#' + popID).width() + 80) / 2;

    //Apply Margin to Popup
    $('#' + popID).css({
        'margin-top' : -popMargTop,
        'margin-left' : -popMargLeft
    });

    //Fade in Background
    $('body').append('<div id="fade"></div>'); //Add the fade layer to bottom of the body tag.
    $('#fade').css({'filter' : 'alpha(opacity=80)'}).fadeIn(); //Fade in the fade layer - .css({'filter' : 'alpha(opacity=80)'}) is used to fix the IE Bug on fading transparencies 

    return false;
});

//Close Popups and Fade Layer
$('a.close, #fade').live('click', function() { //When clicking on the close or fade layer...
    $('#fade , .popup_block').fadeOut(function() {
        $('#fade, a.close').remove();  //fade them both out
    });
    return false;
});
});
</script>

<div id="popup_name" class="popup_block">
<h2>ผู้จัดทำ</h2>
<center>
<table id="tableInfo">
    <tr>
    	<td>นายชัยภูมิ</td>
    	<td>&nbsp;&nbsp;ศิริพันธ์พรชนะ</td>
    	<td>&nbsp;รหัสนักศึกษา 533040441-5</td>
    </tr>
    <tr>
    	<td>นายณัฐพล</td>
    	<td>&nbsp;&nbsp;บัวแจ่มรัตนวงศ์</td>
    	<td>&nbsp;รหัสนักศึกษา 533040708-1</td>
    </tr>
    <tr>
  		<td>นายธนวัฒน์</td>
  		<td>&nbsp;&nbsp;ภู่ศิริรุ่งโรจน์</td>
  		<td>&nbsp;รหัสนักศึกษา 533040714-6</td>
  	</tr>
</table>
<img src="user/pic/favourite_edit.png">
</center>

</div>

<br><br><br>

<center>
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) {return;}
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>


<div class="fb-like" data-href="http://std.kku.ac.th/5330404415/project/" data-send="true" data-width="450" data-show-faces="true"></div>
</center>

</body>
</html>
